package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 晓星航
 * Date: 2023-07-16
 * Time: 16:02
 */
public class ThreadDemo14 {
    public static void main(String[] args) {
        Thread t1 = new Thread(()->{
            System.out.println("hello thread");
        });
        Thread t2 = new Thread(()->{
            System.out.println("hello thread");
        });
        Thread thread = Thread.currentThread();
        System.out.println(thread.getName());
        System.out.println(t1.getName());
        System.out.println(t2.getName());
    }
}
